package com.example.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class UserPreference implements Serializable {
    private static final long serialVersionUID = 1L;

    @TableField("preference_id")
    @TableId(type = IdType.AUTO)
    private Long id;

    @TableField("user_id")
    @ApiModelProperty(value = "外键，关联用户表")
    private Long userId;

    @TableField("sport_id")
    @ApiModelProperty(value = "外键，关联运动类别表")
    private Long sportId;

    @TableField("skill_level")
    @ApiModelProperty(value = "技能水平")
    private String skillLevel;

}
